import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpUsersWallet {
  id!: number;
  balance!: string;
  integral!: number;
  userId!: number;
  uniacid!: number;
}

export const ImsYzdKpUsersWalletSchema = new EntitySchema({
  class: ImsYzdKpUsersWallet,
  properties: {
    id: { primary: true, type: 'number' },
    balance: { type: 'string', columnType: 'numeric(10,2)' },
    integral: { type: 'number' },
    userId: { type: 'number', index: 'user_id' },
    uniacid: { type: 'number', index: 'uniacid' },
  },
});
